home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmClrDebug
- BorderStyle = 0 'None
- ClientHeight = 2085
- ClientLeft = 6495
- ClientTop = 3645
- ClientWidth = 2640
- ControlBox = 0 'False
- Height = 2490
- Left = 6435
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2085
- ScaleWidth = 2640
- Top = 3300
- Width = 2760
- Begin CommandButton cmdExit
- Caption = "&Exit"
- Height = 285
- Left = 450
- TabIndex = 1
- Top = 0
- Width = 465
- End
- Begin CommandButton cmdClearDebug
- Caption = "&Cls"
- Height = 285
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 465
- End
- Sub cmdClearDebug_Click ()
- Dim hWnd As Integer
- Dim intResult As Integer
- hWnd = FindWindow("Microsoft Visual Basic", 1)
- intResult = SetFocusAPI(hWnd)
- SendKeys "%{r}"
- SendKeys "k"
- hWnd = FindWindow("Debug Window", 1)
- intResult = SetFocusAPI(hWnd)
- SendKeys "^{HOME}", True
- SendKeys "^(+{END})", True
- SendKeys "{DELETE}"
- End Sub
- Sub cmdExit_Click ()
- 'This will put "Always Visible" off!
- SetWindowPos frmClrDebug.hWnd, -2, 0, 0, 0, 0, &H50
- Unload Me
- End Sub
- Sub Form_Load ()
- ' MODIFIED BY Don Blaylock 73132,1073
- ' Systems Analyst,
- ' Computer Associates, Inc.
- ' January 8, 1995
- cmdClearDebug.Top = 0
- cmdClearDebug.Left = 0
- cmdExit.Left = cmdClearDebug.Width
- Me.Height = cmdClearDebug.Height
- Me.Width = cmdClearDebug.Width + cmdExit.Width
- Select Case UCase$(Command$)
- Case "TR" ' Top Right
- Me.Left = Screen.Width - Me.Width
- Me.Top = 0
-
- Case "BR" ' Bottom Right
- Me.Left = Screen.Width - Me.Width
- Me.Top = Screen.Height - Me.Height
-
- Case "TL" ' Top Left
- Me.Left = 0
- Me.Top = 0
- Case "BL" ' Bottom Left
- Me.Left = 0
- Me.Top = Screen.Height - Me.Height
- Case Else
- ' No Button On The Desktop
- ' Just Clear the Debug Window & Exit
- cmdClearDebug_Click
- End
- End Select
- End Sub
-